﻿using System.ComponentModel.DataAnnotations;

namespace OF.Microservices.DemoService.Entity
{
    /// <summary>
    /// 订单过虑条件
    /// </summary>
    public class OrderQueryFilter
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public long? OrderNumber { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 页号，从 0 开始
        /// </summary>
        [Range(1, int.MaxValue)]
        public int PageIndex { get; set; }

        /// <summary>
        /// 页大小
        /// </summary>
        [Range(1, int.MaxValue)]
        public int PageSize { get; set; }

        /// <summary>
        /// 排序字段
        /// </summary>
        public string SortFields { get; set; }
    }
}